package com.spark.incoicings.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.spark.invoicings.entity.ReceiptDetail;
import com.spark.invoicings.utils.Result;

import java.util.List;
import java.util.Map;

public interface ReceiptDetailService extends IService<ReceiptDetail> {

    /**
     * 根据id获取采购到货单明细对象
     * @param id
     * @return
     */
    ReceiptDetail selectReceiptDetailByIds(Integer id);

    /**
     * 更新到货单明细
     * @param receiptDetail
     * @return
     */
    boolean updateReceiptDetail(ReceiptDetail receiptDetail);

    /**
     * 添加到货单明细
     * @param receiptDetail
     * @return
     */
    Result addReceiptDetail(ReceiptDetail receiptDetail);

    /**
     * 查询所有采购到货明细
     * @param map
     * @return
     */
    List<ReceiptDetail> selectReceiptDetailAll(Map<String,Object> map);

}
